<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title></title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <link rel="stylesheet" type="text/css" href="../resources/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="../resources/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="../resources/css/grumble.css">

    <script type="text/javascript" src="../resources/scripts/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="../resources/scripts/bootstrap.js"></script>
    <script type="text/javascript" src="../resources/scripts/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="../resources/scripts/bootstrap-datetimepicker.zh-CN.js"></script>
    <script type="text/javascript" src="../resources/scripts/jquery.grumble.min.js"></script>
    <script type="text/javascript" src="../resources/scripts/zhBase.js"></script>
    <script type="text/javascript" src="../resources/scripts/zhForm.js"></script>
    <script type="text/javascript" src="../resources/scripts/exam/addTestAnswer.js"></script>
</head>
<BODY class="mian_bg">
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
    <TR height=28>
        <TD class="addr_td">&nbsp;&nbsp;<img src="/sys/resources/images/addr_icon.png">&nbsp;当前位置: 学习>新增考试题目</TD>
    </TR>
    <TR>
        <TD bgColor=#7ca600 height=1></TD>
    </TR>
    <TR>
        <TD bgColor=#8ebe00 height=1></TD>
    </TR>
</TABLE>

<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">新增考试题目</h3>
        </div>
        <div class="panel-body">
            <form action="/sys/test/addData.do" id="formId" class="form-horizontal" role="form">

                <div class="row">
                    <div class="col-xs-2">
                    </div>
                    <div class="col-xs-4">
                            <div class="input-group" style="margin-bottom: 20px">
                                <div class="input-group-addon">所属学习内容</div>
                                <select name="contentid" class="form-control" notNull="true">
                                    <option value="" selected></option>
                                    <c:forEach var="item" items="${contentList}">
                                        <option value="${item.id}">${item.title}</option>
                                    </c:forEach>
                                </select>
                            </div>
                    </div>
                    <div class="col-xs-2">
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-8">
                        <div class="form-group">
                            <label for="title" class="col-sm-3 control-label">题目名称</label>
                             <input type="hidden" value="" name="data" id="data"/>
                            <div class="col-sm-9">
                                <textarea id="title" name="title" class="form-control" notNull="true" rows="3"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="rowChoose" style="display: block;">
                    <div class="col-xs-2">
                    </div>
                    <div class="col-xs-4">
                        <div style="margin-bottom: 20px">
                            <label class="radio-inline ">
                                <input name="issingle" type="radio" notNull="true" value="1" checked="checked"> 单选
                            </label>
                            <label class="radio-inline">
                                <input name="issingle" type="radio" value="0"> 多选
                            </label>
                        </div>
                    </div>
                    <div class="col-xs-2">
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-2">
                    </div>
                    <div class="col-xs-4">
                        <div style="margin-bottom: 20px">
                             <button type="button" id="btadddid"  class="btn btn-success btn-block">添加题目及答案</button>
                        </div>
                    </div>
                    <div class="col-xs-2">
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
</body>
</html>
